package site.shihuan.helpdesk.service.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import site.shihuan.helpdesk.common.model.JwtUser;
import site.shihuan.helpdesk.common.model.RestResult;

/**
 * 用户信息
 *
 * @author 周世焕
 * @Date 2021/3/1 18:19
 */
@FeignClient(name = "helpdesk-auth")
public interface AuthService {

    /**
     * 查询用户信息
     * @param uid
     * @return
     */
    @GetMapping("/v1/auth/user/info/{uid}")
    RestResult<JwtUser> getUserInfo(@PathVariable String uid);

}
